package com.ruoyi.system.domain;

import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;

/**
 * token对象 token_manage
 * 
 * @author ruoyi
 * @date 2025-02-19
 */
public class TokenManage extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** ID */
    private Long id;

    /** 第三方应用 */
    @Excel(name = "第三方应用")
    private String applicationName;

    /** token */
    @Excel(name = "token")
    private String token;

    /** 是否授权 */
    @Excel(name = "是否授权")
    private Boolean isAuth;

    public void setId(Long id) 
    {
        this.id = id;
    }

    public Long getId() 
    {
        return id;
    }
    public void setApplicationName(String applicationName) 
    {
        this.applicationName = applicationName;
    }

    public String getApplicationName() 
    {
        return applicationName;
    }
    public void setToken(String token) 
    {
        this.token = token;
    }

    public String getToken() 
    {
        return token;
    }
    public void setIsAuth(Boolean isAuth) 
    {
        this.isAuth = isAuth;
    }

    public Boolean getIsAuth() 
    {
        return isAuth;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("applicationName", getApplicationName())
            .append("token", getToken())
            .append("isAuth", getIsAuth())
            .append("createTime", getCreateTime())
            .toString();
    }
}
